package cn.dglydrpy.fundmanagement.service;

import cn.dglydrpy.fundmanagement.service.dto.TransactionDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.math.BigDecimal;
import java.util.List;

public interface ITransactionService {
    int saveTransaction(TransactionDto transactionDto);
    void updateTransaction(TransactionDto transactionDto);
    void deleteTransaction(Long id);
    TransactionDto getTransactionById(Long id);
    Page<TransactionDto> getTransactionsByConditions(String fundCode, String transactionType, int pageNo, int pageSize);
    List<TransactionDto> getAllTransactions();
    List<TransactionDto> getTransactionsByFundCode(String fundCode);
    BigDecimal getTotalProfit();
}